from PyQt4 import QtCore
from PyQt4 import QtGui

FRAME_KEYS = {}
FRAME_KEYS[QtCore.Qt.Key_Space] = "pause\n"
FRAME_KEYS[QtCore.Qt.Key_Left] = "seek -10\n"
FRAME_KEYS[QtCore.Qt.Key_Right] = "seek +10\n"
FRAME_KEYS[QtCore.Qt.Key_Up] = "seek +60\n"
FRAME_KEYS[QtCore.Qt.Key_Down] = "seek -60\n"
FRAME_KEYS[QtCore.Qt.Key_PageUp] = "seek +600\n"
FRAME_KEYS[QtCore.Qt.Key_PageDown] = "seek -600\n"
FRAME_KEYS[QtCore.Qt.Key_Adiaeresis] = "seek +600\n"
FRAME_KEYS[QtCore.Qt.Key_Odiaeresis] = "seek -600\n"
FRAME_KEYS[QtCore.Qt.Key_Minus] = "seek +60\n"
FRAME_KEYS[QtCore.Qt.Key_Period] = "seek -60\n"
FRAME_KEYS[QtCore.Qt.Key_Less] = None
FRAME_KEYS[QtCore.Qt.Key_Greater] = None
FRAME_KEYS[QtCore.Qt.Key_Insert] = None
FRAME_KEYS[QtCore.Qt.Key_Comma] = None
FRAME_KEYS[QtCore.Qt.Key_M] = "mute\n"
FRAME_KEYS[QtCore.Qt.Key_9] = "volume -1\n"
FRAME_KEYS[QtCore.Qt.Key_0] = "volume +1\n"
FRAME_KEYS[QtCore.Qt.Key_D] = None
FRAME_KEYS[QtCore.Qt.Key_Escape] = None
FRAME_KEYS[QtCore.Qt.Key_S] = None
FRAME_KEYS[QtCore.Qt.Key_W] = None
FRAME_KEYS[QtCore.Qt.Key_R] = None
FRAME_KEYS[QtCore.Qt.Key_L] = None
FRAME_KEYS[QtCore.Qt.Key_F9] = None
FRAME_KEYS[QtCore.Qt.Key_F10] = None
FRAME_KEYS[QtCore.Qt.Key_F11] = None
FRAME_KEYS[QtCore.Qt.Key_F12] = None
FRAME_KEYS[QtCore.Qt.Key_U] = None
FRAME_KEYS[QtCore.Qt.Key_J] = None

PLAYLIST = {}
PLAYLIST[QtCore.Qt.Key_F1] = ((), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F2] = ((), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F3] = ((), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F4] = ((), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F5] = (('-idx'), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F6] = (('-idx'), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F7] = (('-idx'), ("paths", "to", "videos"))
PLAYLIST[QtCore.Qt.Key_F8] = (('-idx'), ("paths", "to", "videos"))

SEARCH_DIRS = ('.', )

VAR_CHANGE_STEP = 0.05

PBLUE = QtGui.QPalette()
PBLUE.setColor(QtGui.QPalette.Background, QtCore.Qt.blue)
PBLACK = QtGui.QPalette()
PBLACK.setColor(QtGui.QPalette.Background, QtCore.Qt.black)
PDGRAY = QtGui.QPalette()
PDGRAY.setColor(QtGui.QPalette.Background, QtCore.Qt.darkGray)

DELETE_FILE_TEXT = "Delete file:\n\n%s\n\nD - Delete\nESC - Cancel"
SEARCH_FILE_TEXT = "Search filenames\n\nEnter - Search\nESC - Cancel"

INTERVAL_DELTA = 1
MPLAYER_BIN = 'mplayer'
